<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="/mytag" prefix="yjd" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>

<div class="nav">
    <div class="return">
        <a href="${requestScope.FPWEB.rootPath }/user/growing/group/list${requestScope.FPWEB.urlStuff}">返回上一级</a>
    </div>
</div>
<div class="wrap">
    <form action="${requestScope.FPWEB.rootPath }/user/growing/group/submit${requestScope.FPWEB.urlStuff}"
          class="J_ajaxForm" method="post" autocomplete="off">
        <div class="h_a">
            <h3>群组基本信息</h3>
        </div>
        <input type="hidden" name="group_id" value="${group.group_id}"/>
        <input type="hidden" id="rule_name" name="rule_name" value="${group.rule_name}"/>
        <div class="table_full">
            <table width="100%">
                <tbody>
                <tr>
                    <th width="100"><label class="mr10">群组名称</label></th>
                    <td><input type="text" name="name" value="${group.name}" ></td>
                </tr>
                <tr>
                    <th><label class="mr10">规则</label></th>
                    <td>
                        <select	id="rule_select" name="rule_id" class="mr10">
                            <option value="">请选择</option>
                            <c:forEach items="${rules }" var="item">
                                <option ${group.rule_id==item.rule_id?"selected='selected'":"" } value="${item.rule_id }">${item.rule_name }</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="btn_wrap_pd">
            <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
        </div>
    </form>
</div>
